package com.sky.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.annotation.RegEx;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@ApiModel(description = "传入员工数据的数据模型")
public class EmployeeDTO implements Serializable {

    @ApiModelProperty(value = "唯一ID")
    private Long id;

    @NotEmpty(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名",required = true)
    private String username;

    @ApiModelProperty(value = "姓名",required = true)
    private String name;

    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(value = "电话号码",required = true)
    private String phone;

    @ApiModelProperty(value = "性别",required = true)
    private String sex;

    @ApiModelProperty("身份证号")
    private String idNumber;

}
